:root {
    --primary-font-color: #685728;
    --primary-color: #ada079;
    --success-color: #57a01e;
    --danger-color: #e37575;
    --info-color: #55989a;
    --warning-color: #a48a3a;

    /* --primary-color: #4a90e2; */
    /* --primary-color: #5b8ca1; */
    --primary-color-hover: #948967;
    --success-color-hover: #4a7d17;
    --danger-color-hover: #ff7875;
    --info-color-hover: #4e8b8e;
    --warning-color-hover: #998036;

    /* 背景颜色 */
    --background-color: #fbf9ed;
    --secondary-color: #f5f5f5;
    --text-color: #333;
    --border-color: #b5ad92;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
}

* {
    font-family: "Times New Roman", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: #faf9f7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

i {
    font-style: normal;
}

.main-container {
    display: flex;
    flex: 1;
    padding: 20px 20px 0;
    background-color: #fcfcf8;
}

.content {
    flex: 1;
    padding: 0 0 20px 0;
}

.search-section {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

#searchInput {
    flex: 1;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

button {
    font-family: "Times New Roman", sans-serif;
}

.search-btn {
    width: 100px;
    padding: 8px 16px;
    background: var(--info-color);
    color: white;
    font-size: 0.9em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: var(--info-color-hover);
}

.filter-tags {
    margin-top: 10px;
}

.tag {
    padding: 4px 12px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: white;
    cursor: pointer;
}

.tag.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .main-container {
        flex-direction: column;
        padding: 50px 20px;
        min-height: unset;
    }

    .sidebar {
        width: 100%;
        padding: 0;
    }

    .profile-card, .nav-menu {
        width: 100%;
    }

    .nav-menu {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 12px;
    }

    .content {
        padding: 10px 0 0 0;
        width: 100%;
    }

    .search-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    #searchInput {
        width: 100%;
        margin-right: 0;
    }

    .filter-tags {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    #footer {
        position: relative;
        bottom: unset;
    }
}

/* 小屏幕适配 */
@media screen and (max-width: 480px) {
    .main-header h1 {
        font-size: 1.5em;
    }

    .profile-actions {
        flex-direction: row;
        align-items: center;
    }

    .action-btn {
        width: 100%;
        max-width: 200px;
    }

    .nav-menu {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding: 20px 5px;
    }

    .profile-card, .nav-menu {
        width: 100%;
        max-width: none;
    }

    .main-container {
        padding: 15px;
    }
} 

/* 添加错误信息样式 */
.error-message {
    color: #ff4444;
    font-size: 14px;
    display: none;
    text-align: left;
    padding: 5px;
}

/* 添加 footer 相关样式 */
#footer {
    position: relative;
    width: 100%;
    margin-top: auto;
    background-color: #fff;
    z-index: 10;
}

/* 添加删除按钮样式 */
.delete-btn {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.delete-btn:hover {
    background-color: #ff1111;
}

/* 调整群组操作按钮的布局 */
.group-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}